package com.itheima.mysream;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class StreamDemo2 {
    public static void main(String[] args) throws IOException {
        //进行读取本地文档文件
        FileReader fr = new FileReader("myio\\a.txt");
        int ch;
        while ((ch = fr.read()) != -1) {
            System.out.print((char) ch);
        }
    }
}
